package cn.zhentao.controller;

import cn.zhentao.service.MenuDaoservice;
import cn.zhentao.vo.ZhVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Set;

@RestController
@RequestMapping("menu")
public class MenuContorller {
    @Autowired
    private MenuDaoservice menuDaoservice;
    @RequestMapping("/rbac")
    public Set<ZhVo> rbac(@RequestParam int uid){
        Set<ZhVo> rbac = menuDaoservice.rbac(uid);
        return rbac;
    }
}
